<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>haijd</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  
  
  
  <meta name="description" content="Stay Hungry,Stay Foolish">
<meta property="og:type" content="website">
<meta property="og:title" content="haijd">
<meta property="og:url" content="http://www.hais2.com/page/10/index.html">
<meta property="og:site_name" content="haijd">
<meta property="og:description" content="Stay Hungry,Stay Foolish">
<meta property="og:locale" content="default">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="haijd">
<meta name="twitter:description" content="Stay Hungry,Stay Foolish">
  
    <link rel="alternate" href="/atom.xml" title="haijd" type="application/atom+xml">
  
  <link rel="icon" href="/css/images/favicon.ico">
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
  <link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
  <style type="text/css">
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/9749f0/00000000000000000001008f/27/l?subset_id=2&fvd=n5) format("woff2");font-weight:500;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/90cf9f/000000000000000000010091/27/l?subset_id=2&fvd=n7) format("woff2");font-weight:500;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/8a5494/000000000000000000013365/27/l?subset_id=2&fvd=n4) format("woff2");font-weight:lighter;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/d337d8/000000000000000000010095/27/l?subset_id=2&fvd=i4) format("woff2");font-weight:400;font-style:italic;}</style>
    
  <link rel="stylesheet" id="athemes-headings-fonts-css" href="//fonts.googleapis.com/css?family=Yanone+Kaffeesatz%3A200%2C300%2C400%2C700&amp;ver=4.6.1" type="text/css" media="all">
  <link rel="stylesheet" href="/css/style.css">

  <script src="/js/jquery-3.1.1.min.js"></script>

  <!-- Bootstrap core CSS -->
  <link rel="stylesheet" href="/css/bootstrap.css" >
  <link rel="stylesheet" href="/css/hiero.css" >
  <link rel="stylesheet" href="/css/glyphs.css" >
  
    <link rel="stylesheet" href="/css/vdonate.css" >
  

</head>

<script>
var themeMenus = {};

  themeMenus["/"] = "Home"; 

  themeMenus["/archives"] = "Archives"; 

  themeMenus["/categories"] = "Categories"; 

  themeMenus["/tags"] = "Tags"; 

  themeMenus["/about"] = "About"; 

</script>


  <body>


  <header id="allheader" class="site-header" role="banner">
  <div class="clearfix container">
      <div class="site-branding">

          <h1 class="site-title">
            
              <a href="/" title="haijd" rel="home"> haijd </a>
            
          </h1>

          
            <div class="site-description">Stay Hungry,Stay Foolish</div>
          
            
          <nav id="main-navigation" class="main-navigation" role="navigation">
            <a class="nav-open">Menu</a>
            <a class="nav-close">Close</a>
            <div class="clearfix sf-menu">

              <ul id="main-nav" class="nmenu sf-js-enabled">
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/">Home</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/archives">Archives</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/categories">Categories</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/tags">Tags</a> </li>
                    
                      <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class="" href="/about">About</a> </li>
                    
              </ul>
            </div>
          </nav>


      </div>
  </div>
</header>




  <div id="container">
    <div id="wrap">
            
      <div id="content" class="outer">
        
          <section id="main">
  
    <article id="post-Umbraco-Getting-Started-3"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2016/01/03/Umbraco-Getting-Started-3/">3、UmbracoNewsSite：文档类型设置</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2016/01/03/Umbraco-Getting-Started-3/" class="article-date">
	  <time datetime="2016-01-03T05:37:04.000Z" itemprop="datePublished">January 3, 2016</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　从这一篇开始，我们制作一个简单的新闻网站UmbracoNewsStie，用来演示Umbraco的实际使用技巧。
　　在开始，我们需要先创建文档类型才能进行其他的操作，文档类型就是网站要展示什么。　　首先我们先做一个网站的首页，进入Umbraco的后台界面，选择Setting，点击Document Types选项右边的三个小圆点按钮，在弹出的菜单中点击Create。
　　在创建表单中输入这个文档类型的名称Home，然后勾选创建对应的模板(Create Matching template),最后点击Create按钮。
　　然后我们就进入了设置界面。可以在上面看到四个选项卡：Info、Structure、Generic properties、Tabs，Info设置当前文档类型的名称、别名...
          

        
          <p class="article-more-link">
            <a href="/2016/01/03/Umbraco-Getting-Started-3/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Umbraco/">Umbraco</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Umbraco入门/">Umbraco入门</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Umbraco-Getting-Started-2"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2016/01/02/Umbraco-Getting-Started-2/">2、Umbraco后台管理功能介绍</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2016/01/02/Umbraco-Getting-Started-2/" class="article-date">
	  <time datetime="2016-01-02T03:13:41.000Z" itemprop="datePublished">January 2, 2016</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　上一篇博客介绍了Umbraco的安装，这一篇里面介绍一下umbraco的后台管理的一些主要功能的使用方式。　　首先介绍一下侧边栏的几个主要功能：　　　　1、Content：从字面意思就可以看出来，这个功能是用来编辑网站内容的。　　　　2、Media：这是用来管理多媒体的功能，Umbraco支持图片、视频、音频，可以在这里进行统一的管理。　　　　3、Settings：这个功能是设置网站的一些代码、样式、还有对模板的一些操作；我们之后的编写操作会主要在这里进行。　　　　4、Developer：这是Umbraco的一些操作，设置数据库字段、安装功能和安装包、编辑Macros。　　　　5、User：这是对Umbraco网站后台的管理账号进行管理的，也就是管理员账号。　　　　6、Member...
          

        
          <p class="article-more-link">
            <a href="/2016/01/02/Umbraco-Getting-Started-2/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Umbraco/">Umbraco</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Umbraco入门/">Umbraco入门</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Umbraco-Getting-Started-1"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2016/01/01/Umbraco-Getting-Started-1/">1、Umbraco简介和安装</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2016/01/01/Umbraco-Getting-Started-1/" class="article-date">
	  <time datetime="2016-01-01T13:23:04.000Z" itemprop="datePublished">January 1, 2016</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　Umbraco是国外一个开源的Cms(内容管理)系统，适合做新闻发布、官网等内容需要经常更改变动的网站，也可以作为论坛软件使用，比如asp.net论坛就是基于umbraco制作的。而且Umbraco是使用“所见即所得”的形式，对网站的控制更加方便简单。可谓分分钟做出一个功能齐全的网站的节奏。　　Umbraco在中国的使用范围并不广，能够找到的中文资料零零散散的，而且很多都是以前的，要知道Umbraco从7.0版本以后就开始使用MVC编写了，之前的webforms已经是过去式了。在刚开始学习使用的时候走了很多弯路，由于没有搞懂Cms系统的开发模式，浪费了很多时间，另一个是英语水平限制，阅读英文文档有很多不理解(自我批评一下，程序员应该好！好！学！英！语！)。想到可能以后应该少有机会再...
          

        
          <p class="article-more-link">
            <a href="/2016/01/01/Umbraco-Getting-Started-1/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Umbraco/">Umbraco</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Umbraco入门/">Umbraco入门</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Git-points-summary"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/10/14/Git-points-summary/">git知识点总结</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/10/14/Git-points-summary/" class="article-date">
	  <time datetime="2015-10-14T12:30:45.000Z" itemprop="datePublished">October 14, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            对git的理解：　　1、git跟踪的不是文件，而是修改，这就是git优秀而且快速的原因。　　2、当你从远程克隆的时候，其实就是把git本地的master分支和远程的master分支对应起来了，远程仓库的默认名称是origin。暂存区：　　暂存区在git中是一个比较重要的概念，如果知道EntityFarmework的延迟加载的话，那么就好理解这个，因为暂存区和EF的延迟加载原理是一样的，都是把需要真正提交的数据暂时存储在一起，然后在执行提交命令的时候一次性全部提交。　　暂存区就是用来存储执行git add命令后添加到git库的文件，暂存区的文件暂时没有提交到git的库里面，直到执行git commit命令才会真正的提交git add命令所添加的改变。
HEAD：　　相当于c语言里面的指针...
          

        
          <p class="article-more-link">
            <a href="/2015/10/14/Git-points-summary/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Git/">Git</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Git学习/">Git学习</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Of-the-nine-story-Monster-Tower"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/10/06/Of-the-nine-story-Monster-Tower/">《九层妖塔》</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/10/06/Of-the-nine-story-Monster-Tower/" class="article-date">
	  <time datetime="2015-10-06T15:31:13.000Z" itemprop="datePublished">October 6, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　史上最难看、史上最难看、最难看的电影《九层妖塔》上映了，王八蛋导演坑蒙拐骗了好几亿票房，带着他的脑残编剧跑了，观众没有办法，编几个段子消消气，原来一两句能泄愤的，现在通通省略N句脏话，现在通通省略N句脏话，导演王八蛋，你不是人，我们好心好意看个《鬼吹灯》，被你毁成这样，你还我58块电影票钱，你还我58块电影票钱！

          

        
          <p class="article-more-link">
            <a href="/2015/10/06/Of-the-nine-story-Monster-Tower/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/文集/">文集</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/影评：其实就是观后感/">影评：其实就是观后感</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Extends-MVC-MVP-and-MVVM"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/09/19/Extends-MVC-MVP-and-MVVM/">MVC延伸：MVP、MVVM</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/09/19/Extends-MVC-MVP-and-MVVM/" class="article-date">
	  <time datetime="2015-09-18T17:16:16.000Z" itemprop="datePublished">September 19, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　学习和使用ASP.NET MVC也有一段时间了，对这种开发方式(模式)有了更进一步的了解，今天就跳出ASP.NET的圈子，说一说我了解到的MVC，以及延伸到的MVP、MVVM。(如果理解的不到位希望有看到的这篇博文的同学在评论中指出😛)
MVC　　一开始接触MVC时最先想到的是，MVC算不算是一种设计模式？为什么GoF的23种设计模式中没有MVC模式？ 　　这个问题困扰了我很长时间，常常疑惑MVC为什么不是一种设计模式。之后看了大漠老师的一片博文《为什么MVC不是一种设计模式？ —比较Backbone和Ext4.x在MVC实现上的差异》，反复读了几遍，感觉获益颇深。　　今天我们暂时不讨论这个问题，我的啰嗦就此作罢，进入正题。😛😛😛
　　按照惯例，上图！👀　　如图中所示的，...
          

        
          <p class="article-more-link">
            <a href="/2015/09/19/Extends-MVC-MVP-and-MVVM/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Asp-Net-MVC/">Asp.Net MVC</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Asp-Net-MVC/">Asp.Net MVC</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-HTML-helper-methods"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/08/02/HTML-helper-methods/">HTML辅助方法</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/08/02/HTML-helper-methods/" class="article-date">
	  <time datetime="2015-08-02T15:15:02.000Z" itemprop="datePublished">August 2, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        <p>　　HTML辅助方法，也就是<code>HtmlHelper</code>，就是帮助快捷的产生HTML标签的作用。<br>　　HTML辅助方法可以编写超链接、表单(<form>)、输入框、选项、加载其他的分布视图(Partial View)等。</form></p>
<h3 id="超链接：Html-ActionLink"><a href="#超链接：Html-ActionLink" class="headerlink" title="超链接：Html.ActionLink"></a>超链接：Html.ActionLink</h3><p>　　<a href="mailto:`@Html.ActionLink" target="_blank" rel="noopener">`@Html.ActionLink</a>()<code>用于产生超链接。并且链接的文字部分会自动的进行HTML编码(HtmlEncode)。
&lt;!--more--&gt;
**Html.ActionLink()方法重载**:</code>@Html.ActionLink(“链接文字”,”Action_Name”)<code>：该语法生成的超链接，点击后会跳转到“Action_Name(控制器方法)”所指向的Action。由于这里并没有指定“Controller”的名字，所以会指向默认(该页面所属)的控制器。</code>@Html.ActionLink(“链接文字”,”Action_Name”,”Controller_Name”)<code>：如要将链接指向其他控制器(不是当前页面所属)时，应该在第三参数中注明控制器的名称。</code>@Html.ActionLink(“链接文字”,”Action_Name”,new {id = 12,page = 5})<code>：当链接需要额外的路由参数时，可以传入匿名类型的数据。比如这里会生成这样的标签：</code><a href="/Controller_Name/Action_Name?id=12&page=5">链接文字</a><code></code>@Html.ActionLink(“链接文字”,”Action_Name”,null,new {@class = “btnLink”})`：当要在生成的HTML标签中加入额外的HTML属性时，可以在第四个参数中加入。比如设置HTML的class属性。但是由于class是c#中的关键字，所以在 这里使用时需要在前面加上@符号；而且当需要输出带有“-”数属性时(HTML5的属性)，比如“data-value”，需要将“-”换成“_”。</p>
<p>　　<strong>使用Html.ActionLink()时，第一个参数不能输入空字符串或者null值，否则就会抛出异常。</strong></p>
<h3 id="表单提交：Html-BeginForm"><a href="#表单提交：Html-BeginForm" class="headerlink" title="表单提交：Html.BeginForm"></a>表单提交：Html.BeginForm</h3><p>　　<a href="mailto:`@Html.BeginForm" target="_blank" rel="noopener">`@Html.BeginForm</a>()`可以生成表单提交标签。表单的提交方式默认为Post，可以使用参数将提交方式修改为GET。<br>　　<br>Html.BeginForm()的两种使用方法：</p>
<ol>
<li><p>使用<code>@using{}</code>包裹住Html.BeginForm()以及表单中的标签成员</p>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">@<span class="keyword">using</span>(<span class="keyword">Html</span>.<span class="keyword">BeginForm</span>())</span><br><span class="line">&#123;</span><br><span class="line">    &lt;<span class="selector-tag">p</span>&gt;账号：@<span class="keyword">html</span>.<span class="keyword">TextBox</span>("<span class="keyword">Account</span>")&lt;/<span class="keyword">p</span>&gt;</span><br><span class="line">    &lt;p&gt;密码：@Html.PassWord(<span class="string">"PassWord"</span>)&lt;/p&gt;</span><br><span class="line">    &lt;input type=<span class="string">"submit"</span> value=<span class="string">"注册"</span> /&gt;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
</li>
<li><p>在开头和结尾分别使用<code>Html.BeginForm()</code>、<code>Html.EndForm()</code></p>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">@&#123;<span class="selector-tag">Html</span><span class="selector-class">.BeginForm</span>("<span class="selector-tag">About</span>","<span class="selector-tag">Home</span>");&#125;</span><br><span class="line">    @<span class="keyword">Html</span>.<span class="keyword">TextArea</span>("<span class="keyword">Date</span>")</span><br><span class="line">    @Html.TextArea(<span class="string">"123"</span>)</span><br><span class="line">    &lt;input type=<span class="string">"submit"</span> /&gt;</span><br><span class="line">@&#123;<span class="selector-tag">Html</span><span class="selector-class">.EndForm</span>();&#125;</span><br></pre></td></tr></table></figure>
</li>
</ol>
<p>　　<strong>推荐使用using的方式编写Html.BeginForm(),因为代码比较可看。</strong></p>
<h4 id="使用GET方式提交表单"><a href="#使用GET方式提交表单" class="headerlink" title="使用GET方式提交表单"></a>使用GET方式提交表单</h4><p>　　如果要使用GET方式提交表单，可以输入第三个参数<code>FormMethod.Get</code>：<br><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">@<span class="keyword">using</span>(<span class="keyword">Html</span>.<span class="keyword">BeginForm</span>("<span class="keyword">Search</span>","<span class="keyword">Home</span>",<span class="keyword">FormMethod</span>.<span class="keyword">Get</span>))</span><br><span class="line">&#123;</span><br><span class="line">    @<span class="keyword">Html</span>.<span class="keyword">TextArea</span>("<span class="keyword">2333</span>")</span><br><span class="line">    &lt;input type=<span class="string">"submit"</span> /&gt;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<h4 id="使用上传-提交-文件功能"><a href="#使用上传-提交-文件功能" class="headerlink" title="使用上传(提交)文件功能"></a>使用上传(提交)文件功能</h4><p>　　想要实现上传文件的功能，需要在<code>&lt;form&gt;</code>表单中增加一个<code>enctype</code>属性，所以在Html.BeginForm()中需要添加第四个参数：<br>　　因为Html辅助方法中没有File方法，所以需要借助TextBox方法来代替，然后给TextBox传入第三个参数将type属性修改为file。<br><figure class="highlight scala"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">@using</span>(<span class="type">Html</span>.<span class="type">BeginForm</span>(<span class="string">"Upload"</span>,<span class="string">"File"</span>,<span class="type">FormMethod</span>.<span class="type">Post</span>,<span class="keyword">new</span> &#123;enctype = <span class="string">"multipart/from-data"</span>&#125;))</span><br><span class="line">&#123;</span><br><span class="line">    <span class="meta">@Html</span>.<span class="type">TextBox</span>(<span class="string">"FileName"</span>,<span class="string">""</span>,<span class="keyword">new</span> &#123;<span class="class"><span class="keyword">type</span></span>=<span class="string">"file"</span>,size=<span class="string">"10"</span>&#125;)</span><br><span class="line">    &lt;input <span class="class"><span class="keyword">type</span></span>=<span class="string">"submit"</span> /&gt;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">&lt;!--输出的<span class="type">HTML</span>代码为：--&gt;</span><br><span class="line">&lt;form action=<span class="string">"/File/Upload"</span> enctype=<span class="string">"multipart/from-data"</span> method=<span class="string">"post"</span>&gt;</span><br><span class="line">    &lt;input id=<span class="string">"FileName"</span> name=<span class="string">"FileName"</span> size=<span class="string">"10"</span> <span class="class"><span class="keyword">type</span></span>=<span class="string">"file"</span> value=<span class="string">""</span> /&gt;</span><br><span class="line">    &lt;input <span class="class"><span class="keyword">type</span></span>=<span class="string">"submit"</span> /&gt;</span><br><span class="line">&lt;/form&gt;</span><br></pre></td></tr></table></figure></p>
<h4 id="常用的表单输入辅助方法"><a href="#常用的表单输入辅助方法" class="headerlink" title="常用的表单输入辅助方法"></a>常用的表单输入辅助方法</h4><p>　　● <code>Html.BeginForm()</code>：输出<code>&lt;form&gt;</code>标签<br>　　● <code>Html.EndForm()</code>：输出<code>&lt;/form&gt;</code>标签<br>　　● <code>Html.Lable()</code>：输出<code>&lt;lable&gt;</code>标签<br>　　● <code>Html.TextBox()</code>：输出<code>&lt;input type=&quot;text&quot; /&gt;</code>标签<br>　　● <code>Html.TextArea()</code>：输出<code>&lt;textarea&gt;</code>标签，可以指定rows和column的值。<br>　　● <code>Html.PassWord()</code>：输出<code>&lt;input type=&quot;password&quot; /&gt;</code>标签<br>　　● <code>Html.Checkbox()</code>：输出<code>&lt;input type=&quot;checkbox&quot; /&gt;</code>标签<br>　　● <code>Html.RadioButton()</code>：输出<code>&lt;input type=&quot;radio&quot; /&gt;</code>标签，可以指定是否要默认选取预设值<a href="mailto:`@Html.ReadioButton" target="_blank" rel="noopener">`@Html.ReadioButton</a>(“name”,”vlaue”,true)<code>。
　　●</code>Html.DropDownList()<code>：输出</code><select><code>标签
　　●</code>Html.ListBox()<code>：输出</code></select><select mulitiple=""><code>标签
　　●</code>Html.Hidden()<code>：输出</code></select><input type="hidden"><code>标签
　　●</code>Html.ValidationSummary()`：输出表单验证失败是的错误信息摘要</p>
<p>　　这些标签大多都有重载，比如<a href="mailto:`@Html.TextBox" target="_blank" rel="noopener">`@Html.TextBox</a>()`重载：<br><figure class="highlight dust"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="xml">@Html.TextBox("UserName","Is2",new</span><span class="template-variable">&#123;id="textId"&#125;</span><span class="xml">)</span></span><br><span class="line"><span class="xml"><span class="comment">&lt;!--输出下面的HTML代码：--&gt;</span></span></span><br><span class="line"><span class="xml"><span class="tag">&lt;<span class="name">input</span> <span class="attr">id</span>=<span class="string">"textId"</span> <span class="attr">name</span>=<span class="string">"UserName"</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">value</span>=<span class="string">"Is2"</span> /&gt;</span></span></span><br></pre></td></tr></table></figure></p>
<h3 id="强类型的辅助方法"><a href="#强类型的辅助方法" class="headerlink" title="强类型的辅助方法"></a>强类型的辅助方法</h3><p>　　强类型的辅助方法也就是可以在辅助方法中使用@model加载需要的内容，而且可以使用简洁的lambda表达式。<br>　　强类型的辅助方法名称基本上就是“原本的名字后面加上For”，比如<a href="mailto:`@Html.TextBox" target="_blank" rel="noopener">`@Html.TextBox</a>()<code>的强类型形式就是</code>@Html.TextBoxFor()<code>。
　　要使用强类型的辅助方法，需要在View最开始注明强类型模式:</code>@model MvcApplicationTest.Product`。</p>
<h4 id="使用强类型辅助方法的例子"><a href="#使用强类型辅助方法的例子" class="headerlink" title="使用强类型辅助方法的例子"></a>使用强类型辅助方法的例子</h4><p><strong>数据模型：</strong><br><figure class="highlight cs"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">using</span> System.ComponentModel;</span><br><span class="line"><span class="keyword">using</span> System.ComponentModel.DataAnnotations;</span><br><span class="line"></span><br><span class="line"><span class="keyword">namespace</span> <span class="title">MvcApplicationTest</span></span><br><span class="line">&#123;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">class</span> <span class="title">Product</span></span><br><span class="line">    &#123;</span><br><span class="line">        <span class="keyword">public</span> <span class="keyword">int</span> Id&#123; <span class="keyword">get</span>; <span class="keyword">set</span>; &#125;</span><br><span class="line">        [<span class="meta">Required</span>]</span><br><span class="line">        [<span class="meta">DisplayName(<span class="meta-string">"产品名称"</span>)</span>]</span><br><span class="line">        <span class="keyword">public</span> <span class="keyword">string</span> Name&#123; <span class="keyword">get</span>; <span class="keyword">set</span>; &#125;</span><br><span class="line">        [<span class="meta">Required</span>]</span><br><span class="line">        [<span class="meta">DisplayName(<span class="meta-string">"产品说明"</span>)</span>]</span><br><span class="line">        <span class="keyword">public</span> <span class="keyword">string</span> Description&#123; <span class="keyword">get</span>; <span class="keyword">set</span>; &#125;</span><br><span class="line">        [<span class="meta">Required</span>]</span><br><span class="line">        <span class="keyword">public</span> <span class="keyword">int</span> UnitPrice&#123; <span class="keyword">get</span>; <span class="keyword">set</span>; &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<p><strong>View：</strong><br><figure class="highlight less"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">@model</span> MvcApplicationTest.Product</span><br><span class="line"></span><br><span class="line"><span class="variable">@using</span>(Html.BeginForm())</span><br><span class="line">&#123;</span><br><span class="line">    <span class="variable">@Html</span>.ValidationSummary(true)</span><br><span class="line">    </span><br><span class="line">    &lt;fieldset&gt;</span><br><span class="line">        &lt;h2&gt;产品信息&lt;/h2&gt;</span><br><span class="line">        &lt;div&gt;</span><br><span class="line">            <span class="variable">@Html</span>.LableFor(model=&gt;model.Name)</span><br><span class="line">        &lt;/div&gt;</span><br><span class="line">        &lt;div&gt;</span><br><span class="line">            <span class="variable">@Html</span>.LableFor(model=&gt;model.Description)</span><br><span class="line">        &lt;/div&gt;</span><br><span class="line">        &lt;input type=<span class="string">"submit"</span> /&gt;</span><br><span class="line">    &lt;/fieldset&gt;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></p>
<h3 id="使用辅助方法加载分布视图"><a href="#使用辅助方法加载分布视图" class="headerlink" title="使用辅助方法加载分布视图"></a>使用辅助方法加载分布视图</h3><p>　　使用<a href="mailto:`@Html.Partial" target="_blank" rel="noopener">`@Html.Partial</a>()`方法可以在View中加载一个分布视图(Partial View)。<br>　　因为分布视图是片段式的，所以需要在一个完整页面中加载分布视图。如果分布视图中需要参数，也可以在方法中传入。</p>
<p><strong>index.cshtml</strong><br><figure class="highlight less"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">@model</span> MvcApplicationTest.Product</span><br><span class="line"></span><br><span class="line"><span class="variable">@Html</span>.Partial(<span class="string">"ProductInfo"</span>,(object)model.Name)</span><br></pre></td></tr></table></figure></p>
<p><strong>Partial View(ProductInfo)</strong><br><figure class="highlight less"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">@model</span> System.String</span><br><span class="line"></span><br><span class="line"><span class="variable">@Html</span>.TextBox(model)</span><br></pre></td></tr></table></figure></p>

      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Asp-Net-MVC/">Asp.Net MVC</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Asp-Net-MVC/">Asp.Net MVC</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Write-the-template-directive-met-problems"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/07/18/Write-the-template-directive-met-problems/">directive中写template遇见的问题</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/07/18/Write-the-template-directive-met-problems/" class="article-date">
	  <time datetime="2015-07-18T15:51:57.000Z" itemprop="datePublished">July 18, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　记录一下先前在写指令时，遇到的一个令人无语的错误，避免以后重犯。
　　错误的代码：1234567app. directive( ' ckqlnfo' ,[function()&#123;        return &#123;    　　　restrict: ' AE '     　　　replace: true,     　　　template : '&lt;p&gt;模板&lt;/p&gt;&lt;p&gt;模板&lt;/p&gt; '         ｝    ｝

　　首先看看指令中template的值&lt;p&gt;模板&lt;/p&gt;&lt;p&gt;模板&lt;/p&gt;，这段看起来并没有什么错，但是在实际运行中会造成程序抛出异常，因为这段html代码有两个...
          

        
          <p class="article-more-link">
            <a href="/2015/07/18/Write-the-template-directive-met-problems/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Frontend/">Frontend</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/AngularJS/">AngularJS</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-Angular-module-simple-to-use"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/07/13/Angular-module-simple-to-use/">angular.module()的简单使用</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/07/13/Angular-module-simple-to-use/" class="article-date">
	  <time datetime="2015-07-13T15:17:26.000Z" itemprop="datePublished">July 13, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            　　今天记录一下angularJS的核心入口ng-module。
1var myApp=angular.module('app',[]); //创建ng-app的模型
　　这一句是我们写AngularJS代码的入口，也是基础知识。整个文件或者项目的运行就是基于这个方法得以继续的。在AngularJS的源代码中module方法是作为一个方法函数赋值给了angular这个全局对象的，所以有angular这个顶层对象直接调用。　　作为整个AngularJS程序的入口，module只能有一个，准确的来说应该是在html代码中只能有一个ng-app指令(这并不是绝对的，在开发中我们也可以借用bootstrap这个工具方法去加载其他的ng-app指令，但是这样做可能会造成混乱，暂时不讨论这个问题，...
          

        
          <p class="article-more-link">
            <a href="/2015/07/13/Angular-module-simple-to-use/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/Frontend/">Frontend</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/AngularJS/">AngularJS</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  
    <article id="post-c#-reflection"  class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" itemprop="name">
      <a class="article-title" href="/2015/06/18/c#-reflection/">反射(reflection)</a>
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	Posted on <a href="/2015/06/18/c#-reflection/" class="article-date">
	  <time datetime="2015-06-18T08:01:14.000Z" itemprop="datePublished">June 18, 2015</time>
	</a>

      
    </div>
    <div class="article-entry" itemprop="articleBody">
      
        

          
            <div class="entry-summary" style="margin-left:0;">
            什么是反射　　一个运行的程序查看本身或者其他程序的元数据的行为称为反射(reflection)。　　元数据(metadata)：有关程序及其类型的数据称为元数据，它们保存在程序的程序集中。
　　反射功能引用自system.Reflection命名空间，要使用反射需要使用System.Reflection命名空间。　　BCL(基类库)声明了一个叫做Type的抽象类，它被设计用来包含类型的特性，使用这个类的对象能让我们获取程序使用的类型的信息。
Type类　　● 对于程序中用到的每一个类型，CLR都会创建一个包含这个类型信息的Type类型的对象。　　● 程序中用到的每一个类型都会关联到独立的Type类对象。　　● 不管创建的类型有多少个实例，只有一个Type对象会关联到这些实例。
　　我们...
          

        
          <p class="article-more-link">
            <a href="/2015/06/18/c#-reflection/#more">Continue Reading →</a>
          </p>
        </div>
      
    </div>
    <footer class="entry-meta entry-footer">
      
	<span class="ico-folder"></span>
    <a class="article-category-link" href="/categories/c/">c#</a>

      
  <span class="ico-tags"></span>
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/c-学习笔记/">c#学习笔记</a></li></ul>

      

      
    </footer>
  </div>
  
</article>

<!-- Table of Contents -->

  


  <nav id="page-nav">
    
    <a class="extend prev" rel="prev" href="/page/9/">Prev</a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/8/">8</a><a class="page-number" href="/page/9/">9</a><span class="page-number current">10</span><a class="page-number" href="/page/11/">11</a><a class="page-number" href="/page/12/">12</a><a class="page-number" href="/page/13/">13</a><a class="extend next" rel="next" href="/page/11/">Next</a>
  </nav>

</section>
          <aside id="sidebar">
  
    <div class="widget-wrap" style="margin: 20px 0;">
	<div id="search-form-wrap">

    <form class="search-form">
        <label style="width: 75%;">
            <span class="screen-reader-text">Search for:</span>
            <input type="search" class="search-field" style="height: 42px;" placeholder=" Search…" value="" name="s" title="Search for:">
        </label>
        <input type="submit" class="search-form-submit" value="Search">
    </form>
    <div class="ins-search">
    <div class="ins-search-mask"></div>
    <div class="ins-search-container">
        <div class="ins-input-wrapper">
            <input type="text" class="ins-search-input" placeholder="Type something..."/>
            <span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
(function (window) {
    var INSIGHT_CONFIG = {
        TRANSLATION: {
            POSTS: 'Posts',
            PAGES: 'Pages',
            CATEGORIES: 'Categories',
            TAGS: 'Tags',
            UNTITLED: '(Untitled)',
        },
        ROOT_URL: '/',
        CONTENT_URL: '/content.json',
    };
    window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="/js/insight.js"></script>

</div>
</div>
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Connect With Us</h3>
    <div class="widget widget_athemes_social_icons">

    	<ul class="clearfix widget-social-icons">   
    	
          
     			  <li><a href="https://github.com/haijiandong" title="Github"><i class="fa fa-github" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Weibo"><i class="fa fa-weibo" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Google-plus"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Instagram"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Pinterest"><i class="fa fa-pinterest" aria-hidden="true"></i></a></li> 
          
   		
          
     			  <li><a href="null" title="Flickr"><i class="fa fa-flickr" aria-hidden="true"></i></a></li> 
          
   		
          
            <li><a href="mailto:haijiandong@outlook.com?subject=请联系我&body=我能帮你什么" title="email"><i class="fa fa-envelope" aria-hidden="true"></i></a></li> 
          
   		
   		</ul>


   		<!--
   		<ul class="clearfix widget-social-icons">   		
   		<li class="widget-si-twitter"><a href="http://twitter.com" title="Twitter"><i class="ico-twitter"></i></a></li> 
		<li class="widget-si-facebook"><a href="http://facebook.com" title="Facebook"><i class="ico-facebook"></i></a></li>
			<li class="widget-si-gplus"><a href="http://plus.google.com" title="Google+"><i class="ico-gplus"></i></a></li>
			<li class="widget-si-pinterest"><a href="http://pinterest.com" title="Pinterest"><i class="ico-pinterest"></i></a></li>
			<li class="widget-si-flickr"><a href="http://flickr.com" title="Flickr"><i class="ico-flickr"></i></a></li>
			<li class="widget-si-instagram"><a href="http://instagram.com" title="Instagram"><i class="ico-instagram"></i></a></li>
		</ul> -->

    </div>
  </div>


  
    
  <div class="widget_athemes_tabs">
    <ul id="widget-tab" class="clearfix widget-tab-nav">
      <li class="active"><a>Recent Posts</a></li>
    </ul>
    <div class="widget">
      <ul>
        
          <li class="clearfix">

            
              <div class="widget-entry-thumbnail">
                <a href="/2018/06/14/Spring-Boot-Annotations-1/" title=""><img width="50" height="50" src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1528780019766&amp;di=68e5f2f2eef5b87bf5b5d54455fe994f&amp;imgtype=jpg&amp;src=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D2161947716%2C2940818680%26fm%3D214%26gp%3D0.jpg" class="attachment-thumb-small size-thumb-small wp-post-image" alt="preview-16" title=""></a>
              </div>
              <div class="widget-entry-summary">
            

              <h6 style="margin: 0;"><a href="/2018/06/14/Spring-Boot-Annotations-1/">Spring Boot Annotations</a></h6>
              <span>June 14, 2018</span>
            </div>

          </li>
        
          <li class="clearfix">

            
              <div class="widget-entry-thumbnail">
                <a href="/2018/06/14/Vue-ElementUI-upload-file-controller/" title=""><img width="50" height="50" src="https://cdn-images-1.medium.com/max/1003/1*M20GkaLW-OBcz6-ifDAJEg.png" class="attachment-thumb-small size-thumb-small wp-post-image" alt="preview-16" title=""></a>
              </div>
              <div class="widget-entry-summary">
            

              <h6 style="margin: 0;"><a href="/2018/06/14/Vue-ElementUI-upload-file-controller/">Vue-ElementUI upload组件的上传文件控制</a></h6>
              <span>June 14, 2018</span>
            </div>

          </li>
        
          <li class="clearfix">

            
              <div class="widget-entry-thumbnail">
                <a href="/2018/06/13/Spring-Web-Annotations-1/" title=""><img width="50" height="50" src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1528780019766&amp;di=68e5f2f2eef5b87bf5b5d54455fe994f&amp;imgtype=jpg&amp;src=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D2161947716%2C2940818680%26fm%3D214%26gp%3D0.jpg" class="attachment-thumb-small size-thumb-small wp-post-image" alt="preview-16" title=""></a>
              </div>
              <div class="widget-entry-summary">
            

              <h6 style="margin: 0;"><a href="/2018/06/13/Spring-Web-Annotations-1/">Spring Web Annotations</a></h6>
              <span>June 13, 2018</span>
            </div>

          </li>
        
          <li class="clearfix">

            
              <div class="widget-entry-thumbnail">
                <a href="/2018/06/12/Spring-Core-Annotations-1/" title=""><img width="50" height="50" src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1528780019766&amp;di=68e5f2f2eef5b87bf5b5d54455fe994f&amp;imgtype=jpg&amp;src=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D2161947716%2C2940818680%26fm%3D214%26gp%3D0.jpg" class="attachment-thumb-small size-thumb-small wp-post-image" alt="preview-16" title=""></a>
              </div>
              <div class="widget-entry-summary">
            

              <h6 style="margin: 0;"><a href="/2018/06/12/Spring-Core-Annotations-1/">Spring Core Annotations</a></h6>
              <span>June 12, 2018</span>
            </div>

          </li>
        
          <li class="clearfix">

            
              <div class="widget-entry-thumbnail">
                <a href="/2018/05/30/Spring-AOP-Minimalist-Getting-Started/" title=""><img width="50" height="50" src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1527701268185&amp;di=7ca52773e094b8ee3c40a78ccdf701d9&amp;imgtype=jpg&amp;src=http%3A%2F%2Fimg3.imgtn.bdimg.com%2Fit%2Fu%3D4172169013%2C464131932%26fm%3D214%26gp%3D0.jpg" class="attachment-thumb-small size-thumb-small wp-post-image" alt="preview-16" title=""></a>
              </div>
              <div class="widget-entry-summary">
            

              <h6 style="margin: 0;"><a href="/2018/05/30/Spring-AOP-Minimalist-Getting-Started/">Spring-AOP极简入门</a></h6>
              <span>May 30, 2018</span>
            </div>

          </li>
        
          <li class="clearfix">

            
              <div class="widget-entry-thumbnail">
                <a href="/2018/04/15/5-minutes-to-fit-the-TypeScript/" title=""><img width="50" height="50" src="https://lc-mhke0kuv.cn-n1.lcfile.com/4efd9a4018b57efdcf77.png" class="attachment-thumb-small size-thumb-small wp-post-image" alt="preview-16" title=""></a>
              </div>
              <div class="widget-entry-summary">
            

              <h6 style="margin: 0;"><a href="/2018/04/15/5-minutes-to-fit-the-TypeScript/">5分钟概览TypeScript</a></h6>
              <span>April 15, 2018</span>
            </div>

          </li>
        
      </ul>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Categories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/ASP-NET/">ASP.NET</a><span class="category-list-count">5</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/ASP-NET-Web-API/">ASP.NET Web API</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Asp-Net-MVC/">Asp.Net MVC</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Frontend/">Frontend</a><span class="category-list-count">7</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Git/">Git</a><span class="category-list-count">3</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Golang/">Golang</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Hexo/">Hexo</a><span class="category-list-count">10</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a><span class="category-list-count">22</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Message-queue/">Message queue</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Raspberry/">Raspberry</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/SQL/">SQL</a><span class="category-list-count">8</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Tool/">Tool</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/UWP/">UWP</a><span class="category-list-count">2</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/Umbraco/">Umbraco</a><span class="category-list-count">11</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/c/">c#</a><span class="category-list-count">19</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/学习之道/">学习之道</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/文集/">文集</a><span class="category-list-count">11</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/架构之路/">架构之路</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="/categories/设计模式/">设计模式</a><span class="category-list-count">6</span></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/ASP-NET/">ASP.NET</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ASP-NET-Core/">ASP.NET Core</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ASP-NET-MVC/">ASP.NET MVC</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ASP-NET-Web-API笔记/">ASP.NET Web API笔记</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/AngularJS/">AngularJS</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Asp-Net-MVC/">Asp.Net MVC</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/EntityFramework/">EntityFramework</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Git学习/">Git学习</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Golang入门/">Golang入门</a><span class="tag-list-count">7</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Go标准库/">Go标准库</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Hexo博客搭建/">Hexo博客搭建</a><span class="tag-list-count">10</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Java基础/">Java基础</a><span class="tag-list-count">18</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/RabbitMQ/">RabbitMQ</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/SQL-Server/">SQL Server</a><span class="tag-list-count">8</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Spring/">Spring</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Spring-Annotations/">Spring Annotations</a><span class="tag-list-count">3</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/TypeScript/">TypeScript</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/UWP学习笔记/">UWP学习笔记</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Umbraco入门/">Umbraco入门</a><span class="tag-list-count">11</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Visual-Studio/">Visual Studio</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Vue/">Vue</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/WebForm/">WebForm</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/c-基础知识/">c#基础知识</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/c-学习笔记/">c#学习笔记</a><span class="tag-list-count">12</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jQuery/">jQuery</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/前端组件/">前端组件</a><span class="tag-list-count">2</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/学习之道/">学习之道</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/影评：其实就是观后感/">影评：其实就是观后感</a><span class="tag-list-count">4</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/架构师之路文章笔记/">架构师之路文章笔记</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/树莓派应用/">树莓派应用</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/设计模式学习笔记/">设计模式学习笔记</a><span class="tag-list-count">6</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/转载/">转载</a><span class="tag-list-count">9</span></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/随笔/">随笔</a><span class="tag-list-count">8</span></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/ASP-NET/" style="font-size: 10.91px;">ASP.NET</a> <a href="/tags/ASP-NET-Core/" style="font-size: 10.91px;">ASP.NET Core</a> <a href="/tags/ASP-NET-MVC/" style="font-size: 10px;">ASP.NET MVC</a> <a href="/tags/ASP-NET-Web-API笔记/" style="font-size: 10px;">ASP.NET Web API笔记</a> <a href="/tags/AngularJS/" style="font-size: 10.91px;">AngularJS</a> <a href="/tags/Asp-Net-MVC/" style="font-size: 11.82px;">Asp.Net MVC</a> <a href="/tags/EntityFramework/" style="font-size: 10px;">EntityFramework</a> <a href="/tags/Git学习/" style="font-size: 11.82px;">Git学习</a> <a href="/tags/Golang入门/" style="font-size: 14.55px;">Golang入门</a> <a href="/tags/Go标准库/" style="font-size: 10px;">Go标准库</a> <a href="/tags/Hexo博客搭建/" style="font-size: 17.27px;">Hexo博客搭建</a> <a href="/tags/Java基础/" style="font-size: 20px;">Java基础</a> <a href="/tags/RabbitMQ/" style="font-size: 10px;">RabbitMQ</a> <a href="/tags/SQL-Server/" style="font-size: 15.45px;">SQL Server</a> <a href="/tags/Spring/" style="font-size: 10px;">Spring</a> <a href="/tags/Spring-Annotations/" style="font-size: 11.82px;">Spring Annotations</a> <a href="/tags/TypeScript/" style="font-size: 10px;">TypeScript</a> <a href="/tags/UWP学习笔记/" style="font-size: 10.91px;">UWP学习笔记</a> <a href="/tags/Umbraco入门/" style="font-size: 18.18px;">Umbraco入门</a> <a href="/tags/Visual-Studio/" style="font-size: 10px;">Visual Studio</a> <a href="/tags/Vue/" style="font-size: 10px;">Vue</a> <a href="/tags/WebForm/" style="font-size: 10px;">WebForm</a> <a href="/tags/c-基础知识/" style="font-size: 13.64px;">c#基础知识</a> <a href="/tags/c-学习笔记/" style="font-size: 19.09px;">c#学习笔记</a> <a href="/tags/jQuery/" style="font-size: 10px;">jQuery</a> <a href="/tags/前端组件/" style="font-size: 10.91px;">前端组件</a> <a href="/tags/学习之道/" style="font-size: 10px;">学习之道</a> <a href="/tags/影评：其实就是观后感/" style="font-size: 12.73px;">影评：其实就是观后感</a> <a href="/tags/架构师之路文章笔记/" style="font-size: 10px;">架构师之路文章笔记</a> <a href="/tags/树莓派应用/" style="font-size: 10px;">树莓派应用</a> <a href="/tags/设计模式学习笔记/" style="font-size: 13.64px;">设计模式学习笔记</a> <a href="/tags/转载/" style="font-size: 16.36px;">转载</a> <a href="/tags/随笔/" style="font-size: 15.45px;">随笔</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>

    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/">June 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">May 2018</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/04/">April 2018</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/">December 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">October 2017</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">September 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">August 2017</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/06/">June 2017</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/">May 2017</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/">April 2017</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/">March 2017</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/02/">February 2017</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">November 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/">October 2016</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/">July 2016</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">May 2016</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/">April 2016</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">March 2016</a><span class="archive-list-count">14</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">February 2016</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">January 2016</a><span class="archive-list-count">22</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/10/">October 2015</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">September 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/08/">August 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/07/">July 2015</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/06/">June 2015</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/05/">May 2015</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/04/">April 2015</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/03/">March 2015</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/02/">February 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/01/">January 2015</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/11/">November 2014</a><span class="archive-list-count">2</span></li></ul>
    </div>
  </div>


  
</aside>
        
      </div>
      <footer id="footer" class="site-footer">
  

  <div class="clearfix container">
      <div class="site-info">
	      &copy; 2018 haijd All Rights Reserved.
          
            <span id="busuanzi_container_site_uv">
              本站访客数<span id="busuanzi_value_site_uv"></span>人次  
              本站总访问量<span id="busuanzi_value_site_pv"></span>次
            </span>
          
      </div>
      <div class="site-credit">
        Theme by <a href="https://github.com/iTimeTraveler/hexo-theme-hiero" target="_blank">hiero</a>
      </div>
  </div>
</footer>


<!-- min height -->

<script>
    var contentdiv = document.getElementById("content");

    contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("allheader").offsetHeight - document.getElementById("footer").offsetHeight + "px";
</script>
    </div>
    <!-- <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
    <a href="/categories" class="mobile-nav-link">Categories</a>
  
    <a href="/tags" class="mobile-nav-link">Tags</a>
  
    <a href="/about" class="mobile-nav-link">About</a>
  
</nav> -->
    

<!-- mathjax config similar to math.stackexchange -->

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
    });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Queue(function() {
        var all = MathJax.Hub.getAllJax(), i;
        for(i=0; i < all.length; i += 1) {
            all[i].SourceElement().parentNode.className += ' has-jax';
        }
    });
</script>

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/scripts.js"></script>
<script src="/js/bootstrap.js"></script>
<script src="/js/main.js"></script>








	<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
	</script>






  </div>

  <a id="rocket" href="#top" class=""></a>
  <script type="text/javascript" src="/js/totop.js" async=""></script>
</body>
</html>
